
<template>
  <div class="box">
     <header>
         <van-nav-bar left-arrow title="提现记录"  @click-left="fant" > </van-nav-bar>
     </header>
     <main>
        <div class="Mlist">
            <div class="Mlist_left">
              <div v-for="(item,index) in list" :key="index" >
                  <span>{{ item.tiem }}</span>
              </div>
                
            </div>
            <div class="Mlist_right">
              <div  v-for="(item,index) in list" :key="index">
                  <span>{{ item.title }}</span>
              </div>
                
            </div>
        </div>
     </main>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
import {Monetarylist} from '../request/api'
import {ref} from 'vue'

const fant = () => {
  router.go(-1);
};


const list=ref()

  Monetarylist().then(res=>
    {
      console.log(res);
      // 处理返回数据
      //...
      list.value=res.data.data;
      
    }
  )

</script>

<style scoped>
.box
{
    width: 100%;
    height: 100%;
}

header
{
    width: 100%;
    height: 50px;
}

main
{
   width: 100%;
   height: 550px;
   overflow: scroll;
}

.Mlist
{
    width: 100%;
    height: 600px;
    display: flex;
    margin-left: 30px;
}

.Mlist_left
{
    width: 30%;
    /* height: 100%; */
}

.Mlist_left div
{
    margin-top: 30px;
}


.Mlist_right
{
    width: 60%;
    height: 100%;
    margin-left: 10%;
}

.Mlist_right div
{
  width: 100%;
  height: 70px;
    margin-top: 10px;
    border: 1px solid #ccc;
    font-size: 12px;
    border-radius: 10px;
}
</style>